<p id="notice"><%= notice %></p>
<%= link_to '编辑文章', edit_admin_article_path(@article),method: :get,class:'btn btn-default' %>
<%= link_to '返回文章列表', admin_articles_path ,class: 'btn btn-success'%>
<form class="form-horizontal">
  <h3>文章信息</h3>
  <hr/>
  <div class="form-group">
    <label class="col-md-2 control-label">ID</label>
    <div class="col-md-10">
        <p class="form-control-static"><%= @article.id %></p>
    </div>
  </div>
  <div class="form-group">
    <label class="col-md-2 control-label">文章名称</label>
    <div class="col-md-10">
      <p class="form-control-static"><%= @article.title %></p>
    </div>
  </div>
  <div class="form-group">
    <label class="col-md-2 control-label">分类名称</label>
    <div class="col-md-10">
      <p class="form-control-static">
        <% @article.categories.each do |category| %>
                <span class="label label-success" style="display: inline-block">
                  <%= category.name %>
                </span>
        <% end %>
      </p>
    </div>
  </div>
  <div class="form-group">
    <label class="col-md-2 control-label">标签</label>
    <div class="col-md-10">
      <p class="form-control-static">
        <% @article.tags.each do |tag| %>
                <span class="label label-success" style="display: inline-block">
                  <%= tag.name %>
                </span>
        <% end %>
      </p>
    </div>
  </div>
  <div class="form-group">
    <div class="col-md-12">
      <p class="form-control-static"><%== @article.content %></p>
    </div>
  </div>
</form>
